//
//  ManagementWalletCell.m
//  Bees
//
//  Created by NowYouCanSee on 2018/12/27.
//  Copyright © 2018 xiaohan. All rights reserved.
//

#import "ManagementWalletCell.h"

@implementation ManagementWalletCell

- (void)setupUI{
    
    UIView*backV = [UIView new];
    backV.backgroundColor = UIColor.whiteColor;
    [self.contentView addSubview:backV];
    [backV mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(kNormalSpace);
        make.right.mas_equalTo(-kNormalSpace);
        make.top.mas_equalTo(AdaptedWidth(10));
        make.bottom.mas_equalTo(-AdaptedWidth(10));
    }];
    backV.layer.cornerRadius = AdaptedWidth(10);
    [backV setLayerShadow:kShadowColor offset:CGSizeMake(0, 0) radius:6];
    self.titleLab = [UILabel new];
    self.titleLab.textColor = UIColorHex(#FFAE00);
    self.titleLab.font = kDefaultFont(15);
    [backV addSubview:self.titleLab];
    [self.titleLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(AdaptedWidth(10));
        make.left.mas_equalTo(AdaptedWidth(13));
    }];
    self.arrowImg = [UIImageView new];
    [backV addSubview:self.arrowImg];
    [self.arrowImg mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.mas_equalTo(0);
        make.right.mas_equalTo(-AdaptedWidth(10));
        make.size.mas_equalTo(CGSizeMake(AdaptedWidth(7), AdaptedWidth(12)));
    }];
    self.arrowImg.image = IMAGE_NAMED(@"gray_right_arrow");
    
    self.keyLab = [UILabel new];
    self.keyLab.textColor = UIColorHex(#B5B5B5);
    self.keyLab.font = kDefaultFont(12);
    self.keyLab.lineBreakMode = NSLineBreakByTruncatingMiddle;
    [backV addSubview:self.keyLab];
    [self.keyLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(AdaptedWidth(13));
        make.centerY.mas_equalTo(0);
        make.right.equalTo(self.arrowImg.mas_right).offset(AdaptedWidth(-20));
    }];
    self.availableLab = [UILabel new];
    self.availableLab.textColor = UIColorHex(#333333);
    self.availableLab.font = kBoldFont(16);
    [backV addSubview:self.availableLab];
    [self.availableLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(AdaptedWidth(13));
        make.bottom.mas_equalTo(AdaptedWidth(-10));
    }];
}

@end
